package factory;

import com.jme3.asset.AssetManager;
import com.jme3.material.Material;
import com.jme3.math.ColorRGBA;
import java.util.logging.Logger;

/**
 *
 * @author Mats
 */
public class MaterialFactory {

    // Logger
    private static final Logger logger = Logger.getLogger(MaterialFactory.class.getName());

    public static Material getLightMaterial(AssetManager assetManager) {
        Material material = new Material(assetManager, "Common/MatDefs/Light/Lighting.j3md");
        material.setFloat("Shininess", 0); // no specular
        material.setColor("Ambient", ColorRGBA.Black);
        material.setColor("Diffuse", ColorRGBA.White);
        material.setColor("Specular", ColorRGBA.White);

        return material;
    }
}
